import Layout from "@/layout";

const usersRouter = {
  path: "/user/list",
  component: Layout,
  redirect: "noRedirect",
  name: "user",
  alwaysShow: true,
  hidden: false,
  meta: {
    title: "用户管理",
    abbre: "用户",
    icon: "left_menu_user",
    navigation: "/user",
    id: "407"
  },
  children: [
    {
      path: "/user/list",
      component: () => import("@/views/user/userList"),
      name: "user_list",
      hidden: false,
      meta: {
        title: "用户列表",
        noCache: false,
        navigation: "/user/list",
        icon: "menu_big_data"
      }
    },
    {
      path: "/user/list/add",
      component: () => import("@/views/user/userList_add"),
      name: "user_list_add",
      hidden: true,
      meta: {
        title: "新增用户",
        bread: "用户列表,新增用户",
        noCache: true,
        navigation: "/user/list",
        icon: "menu_big_data"
      }
    },
    {
      path: "/user/list/edit/:id",
      component: () => import("@/views/user/userList_edit"),
      name: "user_list_edit",
      hidden: true,
      meta: {
        title: "编辑用户",
        bread: "用户列表,编辑用户",
        noCache: true,
        navigation: "/user/list",
        icon: "menu_big_data"
      }
    },
    {
      path: "/user/group",
      component: () => import("@/views/user/userGroup"),
      name: "user_group",
      hidden: false,
      meta: {
        title: "分组管理",
        noCache: true,
        navigation: "/user/group",
        icon: "menu_big_data"
      }
    },
    {
      path: "/user/group/shield/:id",
      component: () => import("@/views/user/userGroup_shield"),
      name: "user_group_shield",
      hidden: true,
      meta: {
        title: "屏蔽商品",
        bread: "分组管理,屏蔽商品",
        noCache: true,
        navigation: "/user/group",
        icon: "menu_big_data"
      }
    },
    {
      path: "/user/quotation",
      component: () => import("@/views/user/userQuotation"),
      name: "user_quotation",
      hidden: false,
      meta: {
        title: "周期报价",
        noCache: true,
        navigation: "/user/quotation",
        icon: "menu_big_data"
      }
    },
    {
      path: "/user/quotation/add/:id",
      component: () => import("@/views/user/userQuotation_add"),
      name: "user_quotation_add",
      hidden: true,
      meta: {
        title: "添加报价",
        bread: "周期报价,添加报价",
        noCache: true,
        navigation: "/user/quotation",
        icon: "menu_big_data"
      }
    },
    {
      path: "/user/quotation/edit/:id",
      component: () => import("@/views/user/userQuotation_edit"),
      name: "user_quotation_edit",
      hidden: true,
      meta: {
        title: "编辑报价",
        bread: "周期报价,编辑报价",
        noCache: true,
        navigation: "/user/quotation",
        icon: "menu_big_data"
      }
    },
    {
      path: "/user/quotation/see/:id",
      component: () => import("@/views/user/userQuotation_see"),
      name: "user_quotation_see",
      hidden: true,
      meta: {
        title: "查看报价",
        bread: "周期报价,查看报价",
        noCache: true,
        navigation: "/user/quotation",
        icon: "menu_big_data"
      }
    },
    {
      path: "/user/regional",
      component: () => import("@/views/user/userRegional"),
      name: "user_regional",
      hidden: false,
      meta: {
        title: "用户区域",
        noCache: true,
        navigation: "/user/regional",
        icon: "menu_big_data"
      }
    },
    {
      path: "/user/label",
      component: () => import("@/views/user/userLabel"),
      name: "user_label",
      hidden: false,
      meta: {
        title: "用户标签",
        noCache: true,
        navigation: "/user/label",
        icon: "menu_big_data"
      }
    },

    {
      path: "/user/salesman",
      component: () => import("@/views/user/userSalesman"),
      name: "user_salesman",
      hidden: false,
      meta: {
        title: "业务员",
        noCache: true,
        navigation: "/user/salesman",
        icon: "menu_big_data"
      }
    }
  ]
};

export default usersRouter;
